home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / polardrw / data.z / polardraw.cpp < prev    next >
C/C++ Source or Header  |  1999-05-14  |  49KB  |  2,220 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "polardraw.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPOLARDraw
  12.  
  13. IMPLEMENT_DYNCREATE(CPOLARDraw, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CPOLARDraw properties
  17.  
  18. short CPOLARDraw::GetBorderStyle()
  19. {
  20.     short result;
  21.     GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CPOLARDraw::SetBorderStyle(short propVal)
  26. {
  27.     SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  28. }
  29.  
  30. short CPOLARDraw::GetAppearance()
  31. {
  32.     short result;
  33.     GetProperty(DISPID_APPEARANCE, VT_I4, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CPOLARDraw::SetAppearance(short propVal)
  38. {
  39.     SetProperty(DISPID_APPEARANCE, VT_I4, propVal);
  40. }
  41.  
  42. long CPOLARDraw::GetZoom()
  43. {
  44.     long result;
  45.     GetProperty(0x3e8, VT_I4, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CPOLARDraw::SetZoom(long propVal)
  50. {
  51.     SetProperty(0x3e8, VT_I4, propVal);
  52. }
  53.  
  54. BOOL CPOLARDraw::GetDrawGrid()
  55. {
  56.     BOOL result;
  57.     GetProperty(0x3e9, VT_BOOL, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CPOLARDraw::SetDrawGrid(BOOL propVal)
  62. {
  63.     SetProperty(0x3e9, VT_BOOL, propVal);
  64. }
  65.  
  66. BOOL CPOLARDraw::GetDrawGuidelines()
  67. {
  68.     BOOL result;
  69.     GetProperty(0x3ea, VT_BOOL, (void*)&result);
  70.     return result;
  71. }
  72.  
  73. void CPOLARDraw::SetDrawGuidelines(BOOL propVal)
  74. {
  75.     SetProperty(0x3ea, VT_BOOL, propVal);
  76. }
  77.  
  78. unsigned long CPOLARDraw::GetBackgroundColor()
  79. {
  80.     unsigned long result;
  81.     GetProperty(0x3eb, VT_I4, (void*)&result);
  82.     return result;
  83. }
  84.  
  85. void CPOLARDraw::SetBackgroundColor(unsigned long propVal)
  86. {
  87.     SetProperty(0x3eb, VT_I4, propVal);
  88. }
  89.  
  90. unsigned long CPOLARDraw::GetPaperColor()
  91. {
  92.     unsigned long result;
  93.     GetProperty(0x3ec, VT_I4, (void*)&result);
  94.     return result;
  95. }
  96.  
  97. void CPOLARDraw::SetPaperColor(unsigned long propVal)
  98. {
  99.     SetProperty(0x3ec, VT_I4, propVal);
  100. }
  101.  
  102. unsigned long CPOLARDraw::GetGridColor()
  103. {
  104.     unsigned long result;
  105.     GetProperty(0x3ed, VT_I4, (void*)&result);
  106.     return result;
  107. }
  108.  
  109. void CPOLARDraw::SetGridColor(unsigned long propVal)
  110. {
  111.     SetProperty(0x3ed, VT_I4, propVal);
  112. }
  113.  
  114. unsigned long CPOLARDraw::GetGuidelineColor()
  115. {
  116.     unsigned long result;
  117.     GetProperty(0x3ee, VT_I4, (void*)&result);
  118.     return result;
  119. }
  120.  
  121. void CPOLARDraw::SetGuidelineColor(unsigned long propVal)
  122. {
  123.     SetProperty(0x3ee, VT_I4, propVal);
  124. }
  125.  
  126. unsigned long CPOLARDraw::GetPaperShadowColor()
  127. {
  128.     unsigned long result;
  129.     GetProperty(0x3ef, VT_I4, (void*)&result);
  130.     return result;
  131. }
  132.  
  133. void CPOLARDraw::SetPaperShadowColor(unsigned long propVal)
  134. {
  135.     SetProperty(0x3ef, VT_I4, propVal);
  136. }
  137.  
  138. unsigned long CPOLARDraw::GetPaperOutlinecolor()
  139. {
  140.     unsigned long result;
  141.     GetProperty(0x3f0, VT_I4, (void*)&result);
  142.     return result;
  143. }
  144.  
  145. void CPOLARDraw::SetPaperOutlinecolor(unsigned long propVal)
  146. {
  147.     SetProperty(0x3f0, VT_I4, propVal);
  148. }
  149.  
  150. long CPOLARDraw::GetEditMode()
  151. {
  152.     long result;
  153.     GetProperty(0x3f1, VT_I4, (void*)&result);
  154.     return result;
  155. }
  156.  
  157. void CPOLARDraw::SetEditMode(long propVal)
  158. {
  159.     SetProperty(0x3f1, VT_I4, propVal);
  160. }
  161.  
  162. long CPOLARDraw::GetCurrentShapeType()
  163. {
  164.     long result;
  165.     GetProperty(0x3f2, VT_I4, (void*)&result);
  166.     return result;
  167. }
  168.  
  169. void CPOLARDraw::SetCurrentShapeType(long propVal)
  170. {
  171.     SetProperty(0x3f2, VT_I4, propVal);
  172. }
  173.  
  174. BOOL CPOLARDraw::GetDrawPaper()
  175. {
  176.     BOOL result;
  177.     GetProperty(0x3f3, VT_BOOL, (void*)&result);
  178.     return result;
  179. }
  180.  
  181. void CPOLARDraw::SetDrawPaper(BOOL propVal)
  182. {
  183.     SetProperty(0x3f3, VT_BOOL, propVal);
  184. }
  185.  
  186. BOOL CPOLARDraw::GetDrawPaperOutline()
  187. {
  188.     BOOL result;
  189.     GetProperty(0x3f4, VT_BOOL, (void*)&result);
  190.     return result;
  191. }
  192.  
  193. void CPOLARDraw::SetDrawPaperOutline(BOOL propVal)
  194. {
  195.     SetProperty(0x3f4, VT_BOOL, propVal);
  196. }
  197.  
  198. BOOL CPOLARDraw::GetDrawPaperShadow()
  199. {
  200.     BOOL result;
  201.     GetProperty(0x3f5, VT_BOOL, (void*)&result);
  202.     return result;
  203. }
  204.  
  205. void CPOLARDraw::SetDrawPaperShadow(BOOL propVal)
  206. {
  207.     SetProperty(0x3f5, VT_BOOL, propVal);
  208. }
  209.  
  210. long CPOLARDraw::GetVersion()
  211. {
  212.     long result;
  213.     GetProperty(0x3f6, VT_I4, (void*)&result);
  214.     return result;
  215. }
  216.  
  217. void CPOLARDraw::SetVersion(long propVal)
  218. {
  219.     SetProperty(0x3f6, VT_I4, propVal);
  220. }
  221.  
  222. BOOL CPOLARDraw::GetSnapToGuidelines()
  223. {
  224.     BOOL result;
  225.     GetProperty(0x3f7, VT_BOOL, (void*)&result);
  226.     return result;
  227. }
  228.  
  229. void CPOLARDraw::SetSnapToGuidelines(BOOL propVal)
  230. {
  231.     SetProperty(0x3f7, VT_BOOL, propVal);
  232. }
  233.  
  234. BOOL CPOLARDraw::GetSnapToGrid()
  235. {
  236.     BOOL result;
  237.     GetProperty(0x3f8, VT_BOOL, (void*)&result);
  238.     return result;
  239. }
  240.  
  241. void CPOLARDraw::SetSnapToGrid(BOOL propVal)
  242. {
  243.     SetProperty(0x3f8, VT_BOOL, propVal);
  244. }
  245.  
  246. long CPOLARDraw::GetPaperShadowOffset()
  247. {
  248.     long result;
  249.     GetProperty(0x3f9, VT_I4, (void*)&result);
  250.     return result;
  251. }
  252.  
  253. void CPOLARDraw::SetPaperShadowOffset(long propVal)
  254. {
  255.     SetProperty(0x3f9, VT_I4, propVal);
  256. }
  257.  
  258. long CPOLARDraw::GetViewportOriginX()
  259. {
  260.     long result;
  261.     GetProperty(0x3fa, VT_I4, (void*)&result);
  262.     return result;
  263. }
  264.  
  265. void CPOLARDraw::SetViewportOriginX(long propVal)
  266. {
  267.     SetProperty(0x3fa, VT_I4, propVal);
  268. }
  269.  
  270. long CPOLARDraw::GetViewportOriginY()
  271. {
  272.     long result;
  273.     GetProperty(0x3fb, VT_I4, (void*)&result);
  274.     return result;
  275. }
  276.  
  277. void CPOLARDraw::SetViewportOriginY(long propVal)
  278. {
  279.     SetProperty(0x3fb, VT_I4, propVal);
  280. }
  281.  
  282. long CPOLARDraw::GetPageOriginX()
  283. {
  284.     long result;
  285.     GetProperty(0x3fc, VT_I4, (void*)&result);
  286.     return result;
  287. }
  288.  
  289. void CPOLARDraw::SetPageOriginX(long propVal)
  290. {
  291.     SetProperty(0x3fc, VT_I4, propVal);
  292. }
  293.  
  294. long CPOLARDraw::GetPageOriginY()
  295. {
  296.     long result;
  297.     GetProperty(0x3fd, VT_I4, (void*)&result);
  298.     return result;
  299. }
  300.  
  301. void CPOLARDraw::SetPageOriginY(long propVal)
  302. {
  303.     SetProperty(0x3fd, VT_I4, propVal);
  304. }
  305.  
  306. long CPOLARDraw::GetPageHeight()
  307. {
  308.     long result;
  309.     GetProperty(0x3fe, VT_I4, (void*)&result);
  310.     return result;
  311. }
  312.  
  313. void CPOLARDraw::SetPageHeight(long propVal)
  314. {
  315.     SetProperty(0x3fe, VT_I4, propVal);
  316. }
  317.  
  318. long CPOLARDraw::GetPageWidth()
  319. {
  320.     long result;
  321.     GetProperty(0x3ff, VT_I4, (void*)&result);
  322.     return result;
  323. }
  324.  
  325. void CPOLARDraw::SetPageWidth(long propVal)
  326. {
  327.     SetProperty(0x3ff, VT_I4, propVal);
  328. }
  329.  
  330. long CPOLARDraw::GetHorizontalGrid()
  331. {
  332.     long result;
  333.     GetProperty(0x400, VT_I4, (void*)&result);
  334.     return result;
  335. }
  336.  
  337. void CPOLARDraw::SetHorizontalGrid(long propVal)
  338. {
  339.     SetProperty(0x400, VT_I4, propVal);
  340. }
  341.  
  342. long CPOLARDraw::GetVerticalGrid()
  343. {
  344.     long result;
  345.     GetProperty(0x401, VT_I4, (void*)&result);
  346.     return result;
  347. }
  348.  
  349. void CPOLARDraw::SetVerticalGrid(long propVal)
  350. {
  351.     SetProperty(0x401, VT_I4, propVal);
  352. }
  353.  
  354. BOOL CPOLARDraw::GetShowVerticalScrollBar()
  355. {
  356.     BOOL result;
  357.     GetProperty(0x402, VT_BOOL, (void*)&result);
  358.     return result;
  359. }
  360.  
  361. void CPOLARDraw::SetShowVerticalScrollBar(BOOL propVal)
  362. {
  363.     SetProperty(0x402, VT_BOOL, propVal);
  364. }
  365.  
  366. BOOL CPOLARDraw::GetShowHorizontalScrollBar()
  367. {
  368.     BOOL result;
  369.     GetProperty(0x403, VT_BOOL, (void*)&result);
  370.     return result;
  371. }
  372.  
  373. void CPOLARDraw::SetShowHorizontalScrollBar(BOOL propVal)
  374. {
  375.     SetProperty(0x403, VT_BOOL, propVal);
  376. }
  377.  
  378. BOOL CPOLARDraw::GetShowVerticalRuler()
  379. {
  380.     BOOL result;
  381.     GetProperty(0x405, VT_BOOL, (void*)&result);
  382.     return result;
  383. }
  384.  
  385. void CPOLARDraw::SetShowVerticalRuler(BOOL propVal)
  386. {
  387.     SetProperty(0x405, VT_BOOL, propVal);
  388. }
  389.  
  390. BOOL CPOLARDraw::GetShowHorizontalRuler()
  391. {
  392.     BOOL result;
  393.     GetProperty(0x404, VT_BOOL, (void*)&result);
  394.     return result;
  395. }
  396.  
  397. void CPOLARDraw::SetShowHorizontalRuler(BOOL propVal)
  398. {
  399.     SetProperty(0x404, VT_BOOL, propVal);
  400. }
  401.  
  402. long CPOLARDraw::GetSelectionCount()
  403. {
  404.     long result;
  405.     GetProperty(0x406, VT_I4, (void*)&result);
  406.     return result;
  407. }
  408.  
  409. void CPOLARDraw::SetSelectionCount(long propVal)
  410. {
  411.     SetProperty(0x406, VT_I4, propVal);
  412. }
  413.  
  414. long CPOLARDraw::GetShapeCount()
  415. {
  416.     long result;
  417.     GetProperty(0x407, VT_I4, (void*)&result);
  418.     return result;
  419. }
  420.  
  421. void CPOLARDraw::SetShapeCount(long propVal)
  422. {
  423.     SetProperty(0x407, VT_I4, propVal);
  424. }
  425.  
  426. long CPOLARDraw::Get